package com.migo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.migo.dao.MyTemplateCategoryContentDao;
import com.migo.entity.MyTemplateCategoryContentEntity;
import com.migo.service.MyTemplateCategoryContentService;



@Service("myTemplateCategoryContentService")
public class MyTemplateCategoryContentServiceImpl implements MyTemplateCategoryContentService {
	@Autowired
	private MyTemplateCategoryContentDao myTemplateCategoryContentDao;
	
	@Override
	public MyTemplateCategoryContentEntity queryObject(Integer id){
		return myTemplateCategoryContentDao.queryObject(id);
	}
	
	@Override
	public List<MyTemplateCategoryContentEntity> queryList(Map<String, Object> map){
		return myTemplateCategoryContentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return myTemplateCategoryContentDao.queryTotal(map);
	}
	
	@Override
	public void save(MyTemplateCategoryContentEntity myTemplateCategoryContent){
		myTemplateCategoryContentDao.save(myTemplateCategoryContent);
	}
	
	@Override
	public void update(MyTemplateCategoryContentEntity myTemplateCategoryContent){
		myTemplateCategoryContentDao.update(myTemplateCategoryContent);
	}
	
	@Override
	public void delete(Integer id){
		myTemplateCategoryContentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		myTemplateCategoryContentDao.deleteBatch(ids);
	}
	
}
